package com.jieshuibao.model.db;

import java.util.Date;

public class RedEnvelopesArticleUser {
	
		private String uuid;
	
		private int role;

	    private String counselorDuty;

	    private String realName;

	    private String headImage;

	    private String position;
	    
	    private String phone;
	    
	    private Date sendDate;
	    
	    private double money;
	    
	    private String phoneNumber;
	    
	    private String levelName;
	    
	    private long time;
	    
	    private Integer integralScore;
	    
	    private String userName;
	    
	    
		public String getUserName() {
			return userName;
		}

		public void setUserName(String userName) {
			this.userName = userName;
		}

		public String getUuid() {
			return uuid;
		}

		public void setUuid(String uuid) {
			this.uuid = uuid;
		}

		public Integer getIntegralScore() {
			return integralScore==null ?0:integralScore;
		}

		public void setIntegralScore(Integer integralScore) {
			this.integralScore = integralScore;
		}

		public String getPhone() {
			return phone;
		}

		public void setPhone(String phone) {
			this.phone = phone;
		}

		public long getTime() {
			
			Date sendDate2 = getSendDate();
			if(sendDate2==null){
				return time;
			}else {
				return time==0?sendDate2.getTime():time;
			}
			
		}

		public void setTime(long time) {
			this.time = time;
		}

		public String getLevelName() {
			return levelName;
		}

		public void setLevelName(String levelName) {
			this.levelName = levelName;
		}

		public String getPhoneNumber() {
			return phoneNumber;
		}

		public void setPhoneNumber(String phoneNumber) {
			this.phoneNumber = phoneNumber;
		}

		public int getRole() {
			return role;
		}

		public void setRole(int role) {
			this.role = role;
		}

		public String getCounselorDuty() {
			return counselorDuty;
		}

		public void setCounselorDuty(String counselorDuty) {
			this.counselorDuty = counselorDuty;
		}

		public String getRealName() {
			return realName;
		}

		public void setRealName(String realName) {
			this.realName = realName;
		}

		public String getHeadImage() {
			return headImage;
		}

		public void setHeadImage(String headImage) {
			this.headImage = headImage;
		}

		public String getPosition() {
			return position;
		}

		public void setPosition(String position) {
			this.position = position;
		}

		public Date getSendDate() {
			return sendDate;
		}

		public void setSendDate(Date sendDate) {
			this.sendDate = sendDate;
		}

		public double getMoney() {
			return money;
		}

		public void setMoney(double money) {
			this.money = money;
		}

		@Override
		public String toString() {
			return "RedEnvelopesArticleUser [role=" + role + ", counselorDuty="
					+ counselorDuty + ", realName=" + realName + ", headImage="
					+ headImage + ", position=" + position + ", sendDate="
					+ sendDate + ", money=" + money + ", phoneNumber="
					+ phoneNumber + ", levelName=" + levelName + "]";
		}

	
	    
}
